package com.itheima.job.service;

import com.itheima.job.pojo.dto.AuthDTO;
import com.itheima.job.pojo.dto.UserDTO;
import com.itheima.job.pojo.result.Result;

/**
 * @Author byZhao
 * @Modify 2021-11-16 22:33
 * @Description <p> </p>
 * <p> Talk is cheap . Show me the code! </p>
 */
public interface UserService {
    /**
     * 用户注册业务
     *
     * @param userDTO 业务对象
     * @return
     */
    Result register(UserDTO userDTO);

    /**
     * 用户认证业务对象
     *
     * @param authDTO
     * @return
     */
    Result login(AuthDTO authDTO);

    /**
     * 用户激活账号
     *
     * @param username , code
     * @return
     */
    Result activate(String username, String code);

}
